package com.eposi.eposigameinterface.view;

import android.view.View;
import android.widget.LinearLayout;

import com.eposi.eposigameinterface.MenuActivity;

public class AbsView extends LinearLayout {
	private MenuActivity activity;

	public AbsView(MenuActivity context) {
		super(context);
		this.activity = context;
	}

	protected void setContentView(int layout) {
		View view = inflate(getContext(), layout, null);
		setContentView(view);
	}

	protected void setContentView(View layout) {
		this.removeAllViewsInLayout();
		LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.FILL_PARENT);
		addView(layout, params);
	}
}
